package com.xyd.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyd.model.system.SysRole;
import com.xyd.model.system.vo.AssignRoleVO;

import java.util.Map;

public interface ISysRoleService extends IService<SysRole> {
    /**
     * 根据用户id获取其角色
     * @param userId
     * @return
     */
    Map<String,Object> findRoleByUserId(Long userId);

    /**
     * 分配角色
     * @param assignRoleVO
     */
    void doAssignRole(AssignRoleVO assignRoleVO);
}
